package annotation;

import java.lang.annotation.*;

/**
 * @ClassName TestAnnotationParameter
 * @Description 测试自定义注解的参数
 * @Author Dcs
 * @LastChangeDate 2024/4/2 12:52
 * @Version v1.0
 */

public class TestAnnotationParameter {
    @MethodParameter({"String[]"})
    @MethodModifiers(isStatic = true)
    public static void main(String[] args) {

    }

}

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@interface MethodParameter{
    String[] value();
}

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@interface MethodModifiers{
    String authority() default "public";
    boolean isStatic() default false;
    String returnType() default "void";
}
